package com.cskt.service;

import com.cskt.dao.RoleMapper;
import com.cskt.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 曾小丽 on 2018/4/9.
 */
@Service
public class RoleServiceImpl implements  RoleService{
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> getAllInfo() {
        return roleMapper.getAllInfo();
    }

    @Override
    public Integer Add(Role role) {
        return roleMapper.Add(role);
    }

    @Override
    public Boolean Del(int rid) {
        return roleMapper.Del(rid);
    }

    @Override
    public Integer Update(Role role) {
        return roleMapper.Update(role);
    }
}
